const {BatchRecorder} = require('zipkin');
const {KafkaLogger} = require('zipkin-transport-kafka');

//向kafka丢消息的方法
const recorder = new BatchRecorder({
    logger:new KafkaLogger({
        clientOpts:{
            connectionString:'localhost:2181'
        }
    })
});

module.exports.recorder = recorder;